package com.campus.mapper;

import com.campus.entity.TManagerTeacher;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeacherMapper {

    @Options(useGeneratedKeys = true, keyProperty = "tManagerTeacher.id")
    int createTeacher(TManagerTeacher tManagerTeacher);

    List<TManagerTeacher> queryTeacher(Integer id, String teacherName, String subject);


}
